import request from '@/utils/request'

const api = {
    // 获取工作时间
    getInfo(id) {
        return request({
            url: `/api/BaseData/QmsBaseIpqccalendarworktime/${id}`,
            method: 'get'
        });
    },
    // 获取工作时间列表
    getList(query) {
        return request({
            url: `/api/BaseData/QmsBaseIpqccalendarworktime`,
            method: 'GET',
            data: query
        });
    },
    // 新建工作时间
    create(dataForm) {
        return request({
            url: `/api/BaseData/QmsBaseIpqccalendarworktime`,
            method: 'post',
            data: dataForm,
        });
    },
    // 更新工作时间
    update(dataForm) {
        return request({
            url: `/api/BaseData/QmsBaseIpqccalendarworktime/${dataForm.id}`,
            method: 'put',
            data: dataForm,
        });
    },
    // 删除工作时间
    delete(id) {
        return request({
            url: `/api/BaseData/QmsBaseIpqccalendarworktime/${id}`,
            method: 'delete',
        });
    },
    //导出工作时间
    exportbox(query){
        return request({
            url: `/api/BaseData/QmsBaseIpqccalendarworktime/Actions/Export`,
            method: 'GET',
            data: query
        });
    }


};
export default api;
export const getWorktimeAll = api.getAll;